projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ac565
)
(map-y-or-n-p): If we read -1, for end of keyboard
author
Phillip Rulon
<pjr@gnu.org>
Sun, 10 Oct 1999 01:22:34 +0000
(
01:22
+0000)
committer
Phillip Rulon
<pjr@gnu.org>
Sun, 10 Oct 1999 01:22:34 +0000
(
01:22
+0000)
macro, try again.
lisp/map-ynp.el
patch
|
blob
|
history
diff --git
a/lisp/map-ynp.el
b/lisp/map-ynp.el
index 3180be4d68b826acd8849c6f8d6e55aa31bcedbc..e0b150be721b0bd16afd599494035fff25877058 100644
(file)
--- a/
lisp/map-ynp.el
+++ b/
lisp/map-ynp.el
@@
-149,7
+149,11
@@
Returns the number of actions taken."
(key-description (vector help-char)))
(if minibuffer-auto-raise
(raise-frame (window-frame (minibuffer-window))))
- (setq char (read-event))
+ (while (progn
+ (setq char (read-event))
+ ;; If we get -1, from end of keyboard
+ ;; macro, try again.
+ (not (equal char -1))))
;; Show the answer to the question.
(message "%s(y, n, !, ., q, %sor %s) %s"
prompt user-keys